package com.foreveross.project.usercenterserver.oauth2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.foreveross.project.usercenterserver.oauth2.domain.UcTenant;
import com.foreveross.project.usercenterserver.oauth2.dto.TenantDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yz
 * @since 2019-07-19
 */
@Mapper
public interface UcTenantMapper extends BaseMapper<UcTenant> {


    UcTenant findByClientId(@Param("clientId") String clientId);

    IPage<TenantDto> queryForPage(Page<TenantDto> page, @Param("params") Map<String, Object> params);


}
